package com.xiaodu.acer.phoneplay.ui.fragment;

import com.xiaodu.acer.phoneplay.presenter.AppInfoPresenter;
import com.xiaodu.acer.phoneplay.ui.adapter.AppInfoAdapter;
import com.xiaodu.acer.phoneplay.ui.base.BaseAppInfoFragment;

/**
 * 排行的Fragment
 */
public class RankingFragment extends BaseAppInfoFragment {

    @Override
    protected int type() {
        return AppInfoPresenter.TOP_LIST;
    }

    @Override
    public AppInfoAdapter buildAdapter() {
        return AppInfoAdapter.builder()
                //  .layout(R.layout.fragment_ranking) 不能加
                .showBrief(true)    //内容
                .showPosition(true) //位置
                .showCategoryName(true) // 分类
                .retrofit(mRetrofit)
                .build();
    }
}
